#ifndef SOUND_H
#define SOUND_H

#include <stdio.h>
#include "keyboard.h"
#include "main.h"
#include "mikmod.h"
#include "render.h"

#define SOUND_DEVICE_AUTO_DETECT 0
#define SOUND_DEVICE_GUS 1
#define SOUND_DEVICE_SOUND_BLASTER 2
#define SOUND_DEVICE_NONE 3

extern void sound_init();
extern void playsong(char* sngnme);

extern bool _verge1_stopsound_was_called;
extern bool _verge1_stopsound_completed;
extern void stopsound();

extern char speed;
extern char moneycheat;
extern void playeffect(int efc);
extern int ParseSetup();
extern void sound_loadsfx(char* fname);

extern bool _verge1_sound_freesfx_was_called;
extern void sound_freesfx();

extern UNIMOD* mf;
extern SAMPLE* sfx[30];
extern char numfx;
extern char curch;
extern char jf;
extern char waitvrt;
extern char speed;
extern char moneycheat;
extern int vspm;
extern int mapm;
extern int mapvcm;
extern int vcbufm;

extern char playing;
extern char playingsong[13];

extern int lastvol;

#endif
